﻿namespace FFF.Test.Application.AppServices
{
    using System;
    using Abp.Application.Services;
    using Abp.Application.Services.Dto;
    using FFF.Test.Entity;
    using FFF.Test.Util.Consts;

    /// <summary>
    /// appservice基类
    /// </summary>
    public class YdmAbpAppServiceBase : ApplicationService
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="YdmAbpAppServiceBase"/> class.
        /// 构造函数
        /// </summary>
        public YdmAbpAppServiceBase()
        {
            this.LocalizationSourceName = AppConfigConsts.LocalizationSourceName;
        }

        // protected virtual Task<User> GetCurrentUserAsync()
        // {
        //    var user = UserManager.FindByIdAsync(AbpSession.GetUserId().ToString());
        //    if (user == null)
        //    {
        //        throw new Exception("There is no current user!");
        //    }

        // return user;
        // }
    }
}
